from django import forms
from market.models import Goods, GoodsImg


class AddGoodsForm(forms.ModelForm):
    class Meta:
        model = Goods 
        fields = ['gtype', 'title', 'pct', 'price', 'desc', 'phone']


class UploadImageForm(forms.ModelForm):
    class Meta:
        model = GoodsImg 
        fields = ['image']

